package com.dbpms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dbpms.pojo.ChamberInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChamberMapper extends BaseMapper<ChamberInfo> {

    // 自定义sql - 获取全部寝室信息
    public List<ChamberInfo> queryAllChtInfo(Page<ChamberInfo> page, @Param("ew") QueryWrapper<ChamberInfo> wrapper);
    // 条件查询 - 获取查到的总数
    public int count(@Param("ew") QueryWrapper<ChamberInfo> wrapper);
}
